﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Furion.DependencyInjection;
using Furion.FriendlyException;
using Furion.Logging.Extensions;
using Microsoft.AspNetCore.Mvc.Filters;

namespace Cool.Web.Core.Handlers
{
    public class LogExceptionHandler : IGlobalExceptionHandler, ISingleton
    {
        public Task OnExceptionAsync(ExceptionContext context)
        {
            
            // 写日志
            //context.Exception.Message.LogError();
            return Task.CompletedTask;
        }
    }
}
